package com.ysy.controller;

import com.ysy.entity.NoteCollect;
import com.ysy.entity.vo.NoteCollectReqVO;
import com.ysy.persimmons.common.response.Response;
import com.ysy.service.NoteCollectService;
import jakarta.annotation.Resource;
import org.apache.rocketmq.client.producer.SendResult;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 笔记收藏表 前端控制器
 * </p>
 *
 * @author yangSy
 * @since 2025-05-01
 */
@RestController
@RequestMapping("/collect")
public class NoteCollectController {

    @Resource
    private NoteCollectService noteCollectService;


    @PostMapping("/add")
    public Response<?> noteCollectAdd(@RequestBody NoteCollectReqVO reqVO) {
        return noteCollectService.noteCollectAdd(reqVO);
    }

    @PostMapping("/cancel")
    public Response<?> noteCollectCancel(@RequestBody NoteCollectReqVO reqVO) {
        return noteCollectService.noteCollectCancel(reqVO);
    }




}
